<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="{{ configuration.basePackage }}.mapper.{{ configuration.module }}.{{configuration.javaName}}Mapper">

    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="{{ configuration.basePackage }}.entity.{{ configuration.module }}.{{configuration.javaName}}"> {% for item in datas %}{% if item.Field == 'id' %}
        <id column="id" property="id" /> {% else %}
        <result property="{{ item.Field }}" column="{{ item.FieldLower }}" />    {% endif %}  {% endfor %}
    </resultMap>

</mapper>
